Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericCollectionAssertions<TCollection,T,TAssertions> Class / NotContainInConsecutiveOrder Method / NotContainInConsecutiveOrder(T[]) Method
A System.Array with the unexpected elements.
In This Topic
    NotContainInConsecutiveOrder(T[]) Method
    In This Topic
    Asserts the current collection does not contain the specified elements in the exact same order and are consecutive.
    Syntax
    public AndConstraint<TAssertions> NotContainInConsecutiveOrder( 
       params T[] unexpected
    )

    Parameters

    unexpected
    A System.Array with the unexpected elements.
    Exceptions
    ExceptionDescription
    unexpected is a null reference (Nothing in Visual Basic).
    Remarks
    Elements are compared using their System.Object.Equals(System.Object) implementation.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also